import fetch from 'common/src/utils/fetch'


/**
 *添加课程
 */
function addCourses(data) {
    return fetch({
        url: '/api/electionservice/electionApplyCourses/addCourses',
        method: 'post',
        data: data
    });
}

/**
 *查询申请课程
 */
function applyCourseList(data) {
    return fetch({
        url: '/api/electionservice/electionApplyCourses/applyCourseList',
        method: 'post',
        data: data
    });
}

/**
 *删除课程
 */
function deleteCourses(data) {
    return fetch({
        url: '/api/electionservice/electionApplyCourses/deleteCourses',
        method: 'post',
        data: data
    });
}

/**
 *查询课程列表
 */
function courseList(data) {
    return fetch({
        url: '/api/electionservice/electionApplyCourses/courseList',
        method: 'post',
        data: data
    });
}

export default {
    "addCourses": addCourses,
    "deleteCourses": deleteCourses,
    "courseList":courseList
}



